/*
 * EME_exception.h
 *
 *  Created on: 2012-12-10
 *      Author: shane
 */

#ifndef EME_EXCEPTION_H_
#define EME_EXCEPTION_H_
#define ERROR_CHECKING
#include<stdexcept>
#include<string>
namespace EME{
/**
 * Exception for logic errors list:
 * 	- Geometry module
 * 		1. Rectangle configuration error
 */
class EME_logic_error: public std::logic_error{
public:
	unsigned int errorCode;
	explicit EME_logic_error(const std::string& s,unsigned int code);
};
class EME_runtime_error: public std::runtime_error{
public:
	unsigned int errorCode;
	explicit EME_runtime_error(const std::string& s,unsigned int code);
};

}

#endif /* EME_EXCEPTION_H_ */
